package cn.edu.scau.vsac.service;

import cn.edu.scau.vsac.entity.LoginTicket;
import cn.edu.scau.vsac.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 用户表（user）(User)表服务接口
 *
 * @author makejava
 * @since 2023-08-04 15:19:19
 */
public interface UserService extends IService<User> {

    Map<String, Object> register(User user);

    Map<String, Object> login(String username, String password, int expiredSeconds);

    void logout(String ticket);

    LoginTicket findLoginTicket(String ticket);
}

